package cn.clq.basic.constant;

/**
 * @author clqlongbao
 * @version 1.0
 * @description: 各类常量
 * @date 2022/6/14 17:21
 */
public class Constant{
    /**
     * @description:店铺状态
     * @param: null
     * @return:
     * @author clqlongbao
     * @date: 2022/6/16 17:00
     */
    public class ShopState{
        //店铺的状态：待审核：0
        public static final int AUDITING = 0;
        //店铺的状态：审核通过待激活：1
        public static final int ACTIVATING = 1;
        //店铺的状态：已激活：2
        public static final int ACTIVATED = 2;
        //店铺的状态：驳回：-1
        public static final int REJECT = -1;
        //店铺的状态：拒绝：-2
        public static final int REFUSE = -2;
    }
    /**
     * @description:发送邮件时己方邮箱
     * @param: null
     * @return:
     * @author clqlongbao
     * @date: 2022/6/16 17:00
     */
    public class Mail{
        //发送邮件时，发送方的邮箱
        public static final String MYMAIL = "1272352079@qq.com";
    }
    /**
     * @description:FastDfs地址前缀
     * @param: null
     * @return:
     * @author clqlongbao
     * @date: 2022/6/16 17:01
     */
    public class FastDfs{
        //FastDfs地址前缀
        public static final String FASTDFS = "http://123.207.27.208/";
    }

    /**
     * @description:员工激活状态
     * @param: null
     * @return:
     * @author clqlongbao
     * @date: 2022/6/17 16:31
     */
    public class UserState{
        //已注册
        public static final int REGISTERED = 0;
        //已激活
        public static final int ACTIVATED = 1;
        //禁用
        public static final int DISABLED = -1;
    }


    /**
     * @description:角色的身份类型
     * @param: null
     * @return:
     * @author clqlongbao
     * @date: 2022/6/17 23:57
     */
    public class PersionType {
        public static final int EMPLOYEE= 0;
        public static final int USER = 1;
    }
    /**
     * @description:保存在Redis中的短信验证码的k值的业务键
     * @param: null
     * @return:
     * @author clqlongbao
     * @date: 2022/6/17 16:29
     */
    public class SmsCode{
        public static final String REGISTER_SUFFIX = ":register";
        public static final String CONTENT_PREFIX= "亲，您的验证码是：";
        public static final String CONTENT_SUFFIX = ",3分钟内有效。您正在使用登录功能，请勿向他人转发或泄漏此验证码！！！";
    }


    /**
     * @description: 微信扫码登陆相关常量
     * @param: null
     * @return:
     * @author clqlongbao
     * @date: 2022/6/19 18:10
     */
    public class WeChat{
        public static final String APPID ="wxd853562a0548a7d0";
        public static final String SECRET ="4a5d5615f93f24bdba2ba8534642dbb6";
        //获取token的链接
        public static final String TOKEN_URL = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=APPID&secret=SECRET&code=CODE&grant_type=authorization_code";
        public static final String WXUSER_URL = "https://api.weixin.qq.com/sns/userinfo?access_token=ACCESS_TOKEN&openid=OPENID";
    }
}



